#ifndef _TYPES_H
#define _TYPES_H
#include <climits>

#define uint64 unsigned long long
#define uint32 unsigned int
#define int64 long long
#define int32 int
#define byte char
#define ubyte unsigned char

#define BYTE_BIT CHAR_BIT
/*
#define UINT64_MAX ULONG_MAX
#define INT64_MAX LONG_MAX
#define INT64_MIN LONG_MIN
#define UINT32_MAX UINT_MAX
#define INT32_MAX INT_MAX
#define INT32_MIN INT_MIN
*/
#define UBYTE_MAX UCHAR_MAX
#define BYTE_MAX SCHAR_MAX
#define BYTE_MIN SCHAR_MIN

#define uintX uint64
#define intX  int64
#define fsize uint32

#define FSIZE_MAX INT_MAX
#define UINTX_MAX UINT64_MAX
#define INTX_MAX INT64_MAX
#define INTX_MIN INT64_MIN

#endif
